<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="content-type" content="text/html;charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1">
    <meta http-equiv="X-UA-Compatible" content="IE=9" />
    <meta name="renderer" content="webkit">
    <title>添加设备信息</title>
    <link rel="stylesheet" type="text/css" href="../../css/cm-default.css"  />
    <link rel="stylesheet" type="text/css" href="../../lib/ligerUI/skins/Aqua/css/ligerui-all.css" />
    <link rel="stylesheet" type="text/css" href="../../lib/select2/css/select2.css" />
    <link rel="stylesheet" type="text/css" href="../../lib/ligerUI/skins/ligerui-icons.css" />
    <link rel="stylesheet" type="text/css" href="../../lib/bootstrap//css/bootstrap.css"/>
    <link type="text/css" rel="stylesheet" href="../../css/public.css"  />
    <link type="text/css" rel="stylesheet" href="../../css/pub.css"  />
    <script src="../../lib/jquery/jquery-1.9.1.min.js" type="text/javascript"></script>
    <script src="../../lib/select2/js/select2.full.js" type="text/javascript"></script>
    <script src="../../lib/ligerUI/js/ligerui.all.js" type="text/javascript"></script>
    <script src="../../lib/My97DatePicker/WdatePicker.js"></script>
    <script src="../../js/common.js" type="text/javascript"></script>
    <script src="../../js/comkey.js" type="text/javascript"></script>
    <script type="text/javascript" src="../../lib/bootstrap/js/bootstrap.js" ></script>
    <script type="text/javascript" src="../../lib/ie/respond.src.js"></script>
    <script type="text/javascript" src="../../js/pub.js"></script>
    <script src="attendance_machNew.js" type="text/javascript"></script>
    <style type="text/css">
        .fields{height:35px;padding-top:5px;}
    </style>
</head>

<body>
<div class="form_tab contextHeight">
    <div id="form_option" class="contextWidth form_option">
        <div class="contextWidth form_option_content">
            <button type="button" onclick="saveMach()" class="form_Button btn btn-primary btn-xs">保存</button>
            <button type="button" onclick="backMach()" class="form_Button btn btn-primary btn-xs">返回</button>
        </div>
    </div>
    <div id="form_core" class="form_core">
        <div id="formContent" class="formContent">
            <div class="form_core_content">
                <div id="a_center">
                    <form class="form-horizontal label_font" name="basic-form" method="post" id="basic_form" data-validate="{}">
                        <div class="form_hidden">
                            <input type="hidden" id="picking_id" />
                        </div>
                        <div class="form-group">
                            <label for="machip" class="col-sm-1 control-label">IP地址</label>
                            <div class="col-sm-3 col-sm-offset-1" class="input_left_line">
                                <input type="text" name="machip" id="machip"
                                       class="form-control input-sm"/>
                            </div>
                             <label for="machcode" class="col-sm-1 control-label">机器编号</label>
                            <div class="col-sm-3 col-sm-offset-1" class="input_left_line">
                                <input type="text" name="machcode" id="machcode"
                                      class="form-control input-sm"/>
                            </div>
                        </div>
                        <div class="form-group">
                          <label for="machname" class="col-sm-1 control-label">机器名称</label>
                            <div class="col-sm-3 col-sm-offset-1" class="input_left_line">
                          		<input type="text" name="machname" id="machname"  class="form-control input-sm"/>
                            </div>
                           <label for="machAble" class="col-sm-1 control-label">是否可用</label>
                            <div class="col-sm-3 col-sm-offset-1">
                                <select id="machAble">
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="machmac" class="col-sm-1 control-label">MAC地址</label>
                            <div class="col-sm-3 col-sm-offset-1">
                               <input type="text" name="machmac" id="machmac"
                                       class="form-control input-sm readonly" readonly="readonly"/>
                            </div>
                            <label for="machsn" class="col-sm-1 control-label">机器序列号</label>
                            <div class="col-sm-4 col-sm-offset-1" class="input_left_line">
                              <div class="input-group">
                          		<input type="text" name="machsn" id="machsn"
                                       class="form-control readonly" readonly="readonly"/>
                                <span class="input-group-btn">
                  				<button class="btn btn-primary" type="button" onclick="readMachInfo()">
                  				   获取信息
                  				</button>
               					</span>
                             </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="machnote" class="col-sm-1 control-label">备注</label>
                            <div class="col-sm-8 col-sm-offset-1">
                                <textarea id="machnote" name="machnote" class="form-control" rows="2"></textarea>
                            </div>
                        </div>
                    </form>
                </div>
                <br />
                <div>
                    <!-- Nav tabs -->
                    <ul class="nav nav-tabs" role="tablist">
                        <li role="presentation" class="active"><a href="#tab1" aria-controls="tab1" role="tab" data-toggle="tab" aria-expanded="true">设置信息</a></li>
                    </ul>
                    <!-- Tab panes -->
                    <div class="tab-content">
                        <div role="tabpanel" class="tab-pane tab_content active" id="tab1">
                            <div class="form-horizontal">
                                <div class="form-group">
                                    <label for="IsdeptIdS" class="col-sm-1 control-label">使用部门：</label>
                                    <div class="col-sm-3 col-sm-offset-1">
                                        <select id="IsdeptIdS">
                                        </select>
                                    </div>
                                    <div class="col-sm-1"></div>
                                    <div class="col-sm-4">
                                           <input type="checkbox" id="machUse"  value="1" >
                                           <label> 是否考勤设备</label>
                                           	
                                    </div>
                                </div>
                                <div class="form-group">
                            	    <label for="machAddress" class="col-sm-1 control-label">安装位置：</label>
                            		<div class="col-sm-8 col-sm-offset-1">
                                		<textarea id="machAddress" name="machAddress" class="form-control" rows="2"></textarea>
                           		    </div>
                       		   </div>
                            </div>
                        </div>
                    </div>
                </div>
                <br />
            </div>
        </div>
    </div>
       <applet archive="ZKFace.jar" code = "com.app.FaceApplet"
	  	name = "faceApplet" id="faceApplet" height="0" width= "0" hspace= "0" vspace = "0"
	 	 align = "middle">
      </applet>
</div>
</body>
</html>
